package org.arga.empresa.repository.useradmin;

import org.arga.empresa.model.useradmin.User;
import org.arga.empresa.repository.GenericRepository;

/**
 * Repository contract for interaction with <code>User</code> entities.
 * 
 * @author aflores@arga-inc.com
 * @since Dec 23, 2009 12:47:50 AM
 */
public interface UserRepository extends GenericRepository<Long, User> {

	/**
	 * Retrieves the <code>User</code> by the username
	 * @param username the username to search
	 * @return the <code>User</code> in the repository, null if none. 
	 */
	public User findByUsername(String username);
	
}
